<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>sync login</title>
</head>
<body>

<?php if(empty($_SESSION['username'])):?>
hello,游客;请先<a href="login.php">登录</a>
<?php else: ?>
hello,<?php echo $_SESSION['username']; ?>;<a href="http://myspace.opendoor.com:8011/phptest/opendoor/index.php">进入空间</a>
<?php endif; ?>
&nbsp; <a href="http://www.opendoor.com:8011/phptest/opendoor/index.php">home</a>
</body>
</html>